﻿using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Telerik.Web.Mvc;

namespace Logistics.Web.Models.Order
{
    public class PackageListModel : BaseNopModel
    {
        public PackageListModel()
        {
            LastDaysOptions = new List<SelectListItem>();
            LastDaysOptions.Add(new SelectListItem() { Selected = true, Text = "Last 30 Days", Value = "30" });
            LastDaysOptions.Add(new SelectListItem() { Selected = false, Text = "Last 60 Days", Value = "60" });
            LastDaysOptions.Add(new SelectListItem() { Selected = false, Text = "Last 90 Days", Value = "90" });
        }

        public IList<SelectListItem> LastDaysOptions { get; set; }

        //public IList<SelectListItem> AvailablePageSizes { get; set; }
        public int ApplicatorId { get; set; }

        public string PostalCode { get; set; }
        public string TrackingNumber { get; set; }

        public int? LastDays { get; set; }

        public int? Month { get; set; }
        public int? Year { get; set; }

        [UIHint("DateNullable")]
        public DateTime? StartDate { get; set; }

        [UIHint("DateNullable")]
        public DateTime? EndDate { get; set; }

        public GridModel<PackageModel> Packages { get; set; }
    }
}